{include file="public/header"/}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="alert alert-info">
                早上好啊, {$Think.session.user_auth.user_name ?? '未知用户'}. 欢迎使用One-Admin后台管理系统!
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-success pull-right">月</span>
                    <h5>收入</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">5280.20</h1>
                    <div class="stat-percent font-bold text-success">98% <i class="fa fa-bolt"></i>
                    </div>
                    <small>总收入</small>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-info pull-right">全年</span>
                    <h5>订单</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">1035</h1>
                    <div class="stat-percent font-bold text-info">20% <i class="fa fa-level-up"></i>
                    </div>
                    <small>新订单</small>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-primary pull-right">今天</span>
                    <h5>访客</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">1350</h1>
                    <div class="stat-percent font-bold text-navy">44% <i class="fa fa-level-up"></i>
                    </div>
                    <small>新访客</small>
                </div>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <span class="label label-danger pull-right">最近一个月</span>
                    <h5>活跃用户</h5>
                </div>
                <div class="ibox-content">
                    <h1 class="no-margins">2138</h1>
                    <div class="stat-percent font-bold text-danger">38% <i class="fa fa-level-down"></i>
                    </div>
                    <small>12月</small>
                </div>
            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <!--
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>统计信息</h5>
                </div>
                <div class="ibox-content">
                    <div id="mychart" style="height: 400px;"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    -->
    <div class="row">
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>服务器信息</h5>
                </div>
                <div class="ibox-content">
                    <p>
                        <i class="fa fa-cogs"></i> 运行环境：{$_SERVER ['SERVER_SOFTWARE']}
                    </p>
                    <p>
                        <i class="fa fa-clock-o"></i> 服务器时间: {:date("Y:m:d H:i:s")}
                    </p>
                    <p>
                        <i class="fa fa-arrow-circle-o-up"></i> 最大上传限制：{:ini_get("file_uploads") ?
                        ini_get("upload_max_filesize") :
                        "Disabled"}
                    </p>
                    <p>
                        <i class="fa fa-history"></i> 最大执行时间：{:ini_get("max_execution_time")}秒
                    </p>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>开发者信息</h5>
                </div>
                <div class="ibox-content">
                    <p>
                        <i class="fa fa-send-o"></i> 博客：<a href="http://www.one-admin.org" target="_blank">http://www.one-admin.org</a>
                    </p>
                    <p>
                        <i class="fa fa-qq"></i> QQ ：<a
                            href="http://wpa.qq.com/msgrd?v=3&uin=1905957868&site=qq&menu=yes" target="_blank">1905957868</a>
                    </p>
                    <p>
                        <i class="fa fa-weixin"></i> 微信：as18070059441
                    </p>
                    <p>
                        <i class="fa fa-credit-card"></i> 支付宝：1905957868@qq.com / 兴子g
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<!--
<script src="__LIB__/echarts/echarts-all.js"></script>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('mychart'));

    // 指定图表的配置项和数据
    option = {
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                crossStyle: {
                    color: '#999'
                }
            }
        },
        toolbox: {
            feature: {
                dataView: {show: true, readOnly: false},
                magicType: {show: true, type: ['line', 'bar']},
                restore: {show: true},
                saveAsImage: {show: true}
            }
        },
        legend: {
            data:['访问次数','独立IP数','用户数']
        },
        xAxis: [
            {
                type: 'category',
                data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
                axisPointer: {
                    type: 'shadow'
                }
            }
        ],
        yAxis: [
            {
                type: 'value',
                name: '次数',
                min: 0,
                max: 5000,
                interval: 50,
                axisLabel: {
                    formatter: '{value}'
                }
            },
            {
                type: 'value',
                name: '人数',
                min: 0,
                max: 2000,
                interval: 5,
                axisLabel: {
                    formatter: '{value}'
                }
            }
        ],
        series: [
            {
                name:'访问次数',
                type:'bar',
                data:[500, 800, 1500, 1300, 2000, 3000, 3500, 3200, 2500, 2800, 2900, 3000]
            },
            {
                name:'独立IP数',
                type:'bar',
                data:[250, 450, 800, 700, 1200, 1500, 1800, 1700, 1200, 1300, 1350, 1530]
            },
            {
                name:'用户数',
                type:'line',
                yAxisIndex: 1,
                data:[100, 200, 300, 320, 500, 550, 580, 610, 650, 800, 900, 950]
            }
        ]
    };


    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
    $(window).resize(myChart.resize);
</script>
-->
</body>
</html>
